//
//  NSFileManager+QTAdd.h
//  Pods
//
//  Created by 张俊博 on 16/8/23.
//
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSFileManager (QTAdd)

+ (NSString *)userDirectory:(NSString *)accoutId;
+ (NSString *)userDic;

+ (NSString *)domainDirectory:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)domainDic:(NSString *)domainId;
+ (NSString *)domainDic;

+ (NSString *)officialAvatarDirectory:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)officialAvatarDic:(NSString *)domainId;
+ (NSString *)officialAvatarDic;

+ (NSString *)fileDirectory:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)fileDic:(NSString *)domainId;
+ (NSString *)fileDic;

+ (NSString *)fileIdDic:(NSString *)accoutId domain:(NSString *)domainId fileId:(NSString *)fileId;
+ (NSString *)fileIdDic:(NSString *)domainId fileId:(NSString *)fileId;
+ (NSString *)fileIdDic:(NSString *)fileId;

+ (NSString *)fileDateDic:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)fileDateDic:(NSString *)domainId;
+ (NSString *)fileDateDic;

+ (NSString *)voiceDirectory:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)voiceDic:(NSString *)domainId;
+ (NSString *)voiceDic;

+ (NSString *)voiceIdDic:(NSString *)accoutId domain:(NSString *)domainId fileId:(NSString *)fileId;
+ (NSString *)voiceIdDic:(NSString *)domainId fileId:(NSString *)fileId;
+ (NSString *)voiceIdDic:(NSString *)fileId;

+ (NSString *)voiceDateDic:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)voiceDateDic:(NSString *)domainId;
+ (NSString *)voiceDateDic;

+ (NSString *)imageDirectory:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)imageDic:(NSString *)domainId;
+ (NSString *)imageDic;

+ (NSString *)imageIdDic:(NSString *)accoutId domain:(NSString *)domainId fileId:(NSString *)fileId;
+ (NSString *)imageIdDic:(NSString *)domainId fileId:(NSString *)fileId;
+ (NSString *)imageIdDic:(NSString *)fileId;

+ (NSString *)imageDateDic:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)imageDateDic:(NSString *)domainId;
+ (NSString *)imageDateDic;

+ (NSString *)avatarDirectory:(NSString *)accoutId domain:(NSString *)domainId;
+ (NSString *)avatarDic:(NSString *)domainId;
+ (NSString *)avatarDic;

+ (BOOL)deleteDomainDic:(NSString *)domainId includeSql:(BOOL)includeSql;

+ (BOOL)deleteDomainsWithout:(NSArray *)currentDomains;

//系统temp目录，每次手机重启会自动清空
+ (NSString *)cachesDic;
+ (BOOL)clearCaches;

//获取文件大小
+ (NSInteger)getFilePathSize:(NSString *)filePath;
+ (NSInteger)getFileSizeWithUrl:(NSURL *)fileUrl;
//获取文件所在目录的大小
+ (NSInteger)getFilePathDicSize:(NSString *)dic;
//清除文件所在目录所有文件
+ (BOOL)clearFilePathDic:(NSString *)dic;

@end

NS_ASSUME_NONNULL_END
